package com.lanchetech.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;

import com.lanchetech.entity.AnchorAttention;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface AnchorAttentionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AnchorAttention record);

    int insertSelective(AnchorAttention record);

    AnchorAttention selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AnchorAttention record);

    int updateByPrimaryKey(AnchorAttention record);

    AnchorAttention findOneByUserIdAndAnchorUserId(@Param("userId")Long userId,@Param("anchorUserId")Long anchorUserId);

    List<AnchorAttention> findAllByUserId(@Param("userId")Long userId);
}